<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
 * HTML View class for the Cart Component
 */
class ShopViewOrder extends JView
{

	protected $path_img = null;
	// Overwriting JView display method
	function display($tpl = null) 
	{
		
		$app = JFactory::getApplication();
		$this->path_img = JURI::root().'images/image_product/thumb/';
		$this->carts = $this->get('Carts');
		// Check for errors.
		if (count($errors = $this->get('Errors'))) 
		{
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		$app->redirect(JRoute::_('index.php?option=com_shop&view=cart&layout=default'),false);

		// Display the view
		parent::display($tpl);
	}
	
	
}